<? require_once('html2fpdf.php');
$pagina = @$HTTP_GET_VARS["page"]; 
// activate Output-Buffer:
ob_start(); ?>


<? //Automatically get html2fpdf tag info
$pdf = new HTML2FPDF();
$pdf->DisableTags();
$pdf->DisplayPreferences('FullScreen');
?>



<?php include $pagina ?>


<? // Output-Buffer in variable:
$html=ob_get_contents();
// delete Output-Buffer
ob_end_clean();
$pdf->AddPage();
$pdf->WriteHTML($html);
$pdf->Output('doc.pdf','I'); ?>

